package org.azmat.springcache.SQL.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.azmat.springcache.SQL.Entity.Book;

@Mapper
public interface BookMapper extends BaseMapper<Book> {
    @Update("UPDATE book SET name=#{name}, type=#{type}, author=#{author}, price=#{price} WHERE id=#{id}")
    int updateById(Book book);

}
